<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        ul {
            list-style: none;
            animation: pic 3s linear infinite;
            width: 200%;

        }

        nav {
            margin: 200px auto;
            height: 200px;
            width: 1000px;
            overflow: hidden;

        }

        ul li {
            height: 200px;
            width: 200px;
            float: left;
        }

        img {
            height: 100%;
            width: 100%;
        }

        nav:hover ul {
            animation-play-state: paused;
        }

        @keyframes pic {
            0% {
                transform: translateX(0);
            }


            100% {
                transform: translateX(-1000px);
            }
        }
    </style>
</head>

<body>
    <nav>
        <ul>
            <li><img src="./images/1.jpg" alt="" srcset=""></li>
            <li><img src="./images/2.jpg" alt="" srcset=""></li>
            <li><img src="./images/3.jpg" alt="" srcset=""></li>
            <li><img src="./images/4.jpg" alt="" srcset=""></li>
            <li><img src="./images/5.jpg" alt="" srcset=""></li>

            <li><img src="./images/1.jpg" alt="" srcset=""></li>
            <li><img src="./images/2.jpg" alt="" srcset=""></li>
            <li><img src="./images/3.jpg" alt="" srcset=""></li>
            <li><img src="./images/4.jpg" alt="" srcset=""></li>
            <li><img src="./images/5.jpg" alt="" srcset=""></li>
        </ul>
    </nav>
</body>

</html>